module.exports = {
  devServer: {
    port: 8082,
    proxy: {
      '/admin': {
        target: 'http://47.113.122.121:8081',
        // target: "http://localhost:8081",
        changeOrigin: true,
        pathRewrite: {
          '^/admin': ''
        }
      },
      '/user': {
        target: 'http://47.113.122.121:8080',
        // target: "http://localhost:8080",
        changeOrigin: true,
        pathRewrite: {
          '^/user': ''
        }
      }
    }
  },
  publicPath: './',
  lintOnSave: false,
  css: {
    loaderOptions: {
      sass: {
        prependData: '@import "@/assets/css/_variable.scss";' // 引入全局变量
      }
    }
  }
}
